SRCS = \
	tcp01.cc tcp02.cc tcp03.cc tcp04.cc tcp05.cc udp01.cc udp02.cc \
	tcpserver.cc 
OUTS = $(SRCS:.cc=.x)

CXX = @CXX@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
LDFLAGS = @LDFLAGS@ \
	-L@abs_top_builddir@/xp/bas \
	-L@abs_top_builddir@/xp/net \
	-L@abs_top_builddir@/xpp/bas \
	-L@abs_top_builddir@/xpp/net
LIBS = @LIBS@ -lxppnet -lxppbas -lxpnet -lxpbas

all: $(OUTS)

clean:
	rm -rf $(OUTS) *.o

.SUFFIXES: .cc .x
.cc.x:
	$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
